# -*- encoding:utf-8 -*-
# @Time : 2025/3/10 16:48
# @Author : xunter
# @Email : 3133739348@qq.com
# @File : urls.py
# @Software : PyCharm
from django.urls import path
from rest_framework import routers

from .views import *

# urlpatterns = [
#     path('students/',StudentViewSet.as_view({'get':'list','post':'create'})),
#     path('student/<pk>',StudentViewSet.as_view({'put':'update','get':'retrieve','delete':'destroy'})),
# ]

urlpatterns = []
router = routers.DefaultRouter()
router.register('student',StudentViewSet)
router.register('classes',ClassesViewSet)
urlpatterns += router.urls